package com.xiaokaceng.openci.domain;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;

@Entity
@DiscriminatorValue("REDMINE")
public class RedmineConfiguration extends ToolConfiguration {

	private static final long serialVersionUID = 2774285504963761447L;

	RedmineConfiguration() {
	}

	public RedmineConfiguration(String name, String serviceUrl, String username, String password) {
		super(name, serviceUrl, username, password);
	}

	@Override
	public String getRequestAddress(String projectName) {
		return getServiceUrl();
	}

	@Override
	public String[] businessKeys() {
		return new String[] { getServiceUrl() };
	}

}
